<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::BaseDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_s_p_h_1_1_base_data_package-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::BaseDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Abstract base class for a data package which is given by a small mesh patch. note tha ADDRS_SIZE = PKG_SIZE + 2 * pkg_addrs_buffer_;.  
 <a href="class_s_p_h_1_1_base_data_package.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="mesh__with__data__packages_8h_source.html">mesh_with_data_packages.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a533e964fd9ae146194533f7457cfc77b"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a533e964fd9ae146194533f7457cfc77b"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a> = PackageDataMatrix&lt; DataType, PKG_SIZE &gt;</td></tr>
<tr class="separator:a533e964fd9ae146194533f7457cfc77b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78749e0cfc7e90525a72781510ebc3d5"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a78749e0cfc7e90525a72781510ebc3d5"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a> = PackageDataMatrix&lt; DataType *, ADDRS_SIZE &gt;</td></tr>
<tr class="separator:a78749e0cfc7e90525a72781510ebc3d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e7c2c1642340712061e846748cdf561"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a1e7c2c1642340712061e846748cdf561"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a1e7c2c1642340712061e846748cdf561">PackageTemporaryData</a> = PackageDataMatrix&lt; DataType, ADDRS_SIZE &gt;</td></tr>
<tr class="separator:a1e7c2c1642340712061e846748cdf561"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab09ff3b485f95a72791b59ebec151a3f"><td class="memItemLeft" align="right" valign="top"><a id="ab09ff3b485f95a72791b59ebec151a3f"></a>
constexpr <a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>PackageSize</b> ()</td></tr>
<tr class="separator:ab09ff3b485f95a72791b59ebec151a3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eda956dc5c506f6b34a3e58c42117d8"><td class="memItemLeft" align="right" valign="top"><a id="a4eda956dc5c506f6b34a3e58c42117d8"></a>
constexpr <a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>AddressSize</b> ()</td></tr>
<tr class="separator:a4eda956dc5c506f6b34a3e58c42117d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a001e92e915ed2a9745a218a5749a6554"><td class="memItemLeft" align="right" valign="top"><a id="a001e92e915ed2a9745a218a5749a6554"></a>
constexpr <a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>AddressBufferWidth</b> ()</td></tr>
<tr class="separator:a001e92e915ed2a9745a218a5749a6554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9978564932a31e75d70d84958f1d6074"><td class="memItemLeft" align="right" valign="top"><a id="a9978564932a31e75d70d84958f1d6074"></a>
constexpr <a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>OperationUpperBound</b> ()</td></tr>
<tr class="separator:a9978564932a31e75d70d84958f1d6074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90485a8cedc9c192ea2cba1e7f09abea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a90485a8cedc9c192ea2cba1e7f09abea">initializePackageGeometry</a> (Vecd &amp;pkg_lower_bound, Real data_spacing)</td></tr>
<tr class="separator:a90485a8cedc9c192ea2cba1e7f09abea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a459a1bc47563fddf826fa9534e2616"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a8a459a1bc47563fddf826fa9534e2616"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a8a459a1bc47563fddf826fa9534e2616">probeDataPackage</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;pkg_data_addrs, const Vecd &amp;position)</td></tr>
<tr class="separator:a8a459a1bc47563fddf826fa9534e2616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa569be3d8384b956a47c0deb1c44eab2"><td class="memTemplParams" colspan="2">template&lt;typename InDataType , typename OutDataType &gt; </td></tr>
<tr class="memitem:aa569be3d8384b956a47c0deb1c44eab2"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#aa569be3d8384b956a47c0deb1c44eab2">computeGradient</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; InDataType &gt; &amp;in_pkg_data_addrs, <a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; OutDataType &gt; out_pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="separator:aa569be3d8384b956a47c0deb1c44eab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a165808192799c34995ed2d5f94c8a104"><td class="memTemplParams" colspan="2">template&lt;typename InDataType , typename OutDataType &gt; </td></tr>
<tr class="memitem:a165808192799c34995ed2d5f94c8a104"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a165808192799c34995ed2d5f94c8a104">computeNormalizedGradient</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; InDataType &gt; &amp;in_pkg_data_addrs, <a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; OutDataType &gt; out_pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="separator:a165808192799c34995ed2d5f94c8a104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a06e00f3689429e2b174e3da6a7021900"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseMesh</b> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points)</td></tr>
<tr class="separator:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a00a3bee5412ec539c8cd068d504cd45b"></a>
Vecd&#160;</td><td class="memItemRight" valign="bottom"><b>MeshLowerBound</b> ()</td></tr>
<tr class="separator:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a075244782af1e6dccff264c569e29dab"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>GridSpacing</b> ()</td></tr>
<tr class="separator:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ad6f44b0d0886d0fd8cbbbded978fca8c"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>NumberOfGridPoints</b> ()</td></tr>
<tr class="separator:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae302fc10695090e00d24c39f8e9a2678 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ae302fc10695090e00d24c39f8e9a2678"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GridIndexFromPosition</b> (const Vecd &amp;position)</td></tr>
<tr class="separator:ae302fc10695090e00d24c39f8e9a2678 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8ead27d4828a6cdc50e5cdd56b7ae86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ad8ead27d4828a6cdc50e5cdd56b7ae86"></a>
Vecd&#160;</td><td class="memItemRight" valign="bottom"><b>GridPositionFromIndex</b> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index)</td></tr>
<tr class="separator:ad8ead27d4828a6cdc50e5cdd56b7ae86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1926fe2d95f91ae08e16c12e46fca210 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a1926fe2d95f91ae08e16c12e46fca210"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>transfer1DtoMeshIndex</b> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points, <a class="el" href="classsize__t.html">size_t</a> i)</td></tr>
<tr class="separator:a1926fe2d95f91ae08e16c12e46fca210 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab854b17cf6c10bf15eafcf1ad9c4f633 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ab854b17cf6c10bf15eafcf1ad9c4f633"></a>
<a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>transferMeshIndexTo1D</b> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index)</td></tr>
<tr class="separator:ab854b17cf6c10bf15eafcf1ad9c4f633 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2b22b19b1175c3e5d8c014e00a1602c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ae2b22b19b1175c3e5d8c014e00a1602c">MortonCode</a> (const <a class="el" href="classsize__t.html">size_t</a> &amp;i)</td></tr>
<tr class="separator:ae2b22b19b1175c3e5d8c014e00a1602c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a815229fa561c3cf114a6ddb77bdb247c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a815229fa561c3cf114a6ddb77bdb247c">transferMeshIndexToMortonOrder</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index)</td></tr>
<tr class="separator:a815229fa561c3cf114a6ddb77bdb247c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af0bb3736a1690361c143004d97df5982"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#af0bb3736a1690361c143004d97df5982">data_lower_bound_</a></td></tr>
<tr class="separator:af0bb3736a1690361c143004d97df5982"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ecdb2f7cef628600fdeb5c847f16ec0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a4ecdb2f7cef628600fdeb5c847f16ec0">pkg_index_</a></td></tr>
<tr class="separator:a4ecdb2f7cef628600fdeb5c847f16ec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ce05b6dda6fbc903e2ede9e71d8862b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a1ce05b6dda6fbc903e2ede9e71d8862b">is_inner_pkg_</a></td></tr>
<tr class="separator:a1ce05b6dda6fbc903e2ede9e71d8862b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:abda9f32c82964cb4ea44434603d56fd8"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:abda9f32c82964cb4ea44434603d56fd8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#abda9f32c82964cb4ea44434603d56fd8">initializePackageDataAddress</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a>&lt; DataType &gt; &amp;pkg_data, <a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;pkg_data_addrs)</td></tr>
<tr class="separator:abda9f32c82964cb4ea44434603d56fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdcfb09e2db66d6664c442f2f64690cf"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:abdcfb09e2db66d6664c442f2f64690cf"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#abdcfb09e2db66d6664c442f2f64690cf">assignPackageDataAddress</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;pkg_data_addrs, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;addrs_index, <a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a>&lt; DataType &gt; &amp;pkg_data, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;data_index)</td></tr>
<tr class="separator:abdcfb09e2db66d6664c442f2f64690cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06c9aa37cb86d132547d2fc5cd1d894e"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a06c9aa37cb86d132547d2fc5cd1d894e"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a06c9aa37cb86d132547d2fc5cd1d894e">CornerAverage</a> (<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;pkg_data_addrs, <a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a> addrs_index, <a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a> corner_direction)</td></tr>
<tr class="separator:a06c9aa37cb86d132547d2fc5cd1d894e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">mesh_lower_bound_</a></td></tr>
<tr class="separator:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">grid_spacing_</a></td></tr>
<tr class="separator:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">number_of_grid_points_</a></td></tr>
<tr class="separator:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;int PKG_SIZE, int ADDRS_SIZE&gt;<br />
class SPH::BaseDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt;</h3>

<p>Abstract base class for a data package which is given by a small mesh patch. note tha ADDRS_SIZE = PKG_SIZE + 2 * pkg_addrs_buffer_;. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a533e964fd9ae146194533f7457cfc77b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a533e964fd9ae146194533f7457cfc77b">&#9670;&nbsp;</a></span>PackageData</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::<a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a> =  PackageDataMatrix&lt;DataType, PKG_SIZE&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>define package data type </p>

</div>
</div>
<a id="a78749e0cfc7e90525a72781510ebc3d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78749e0cfc7e90525a72781510ebc3d5">&#9670;&nbsp;</a></span>PackageDataAddress</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::<a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a> =  PackageDataMatrix&lt;DataType*, ADDRS_SIZE&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>define package data address type </p>

</div>
</div>
<a id="a1e7c2c1642340712061e846748cdf561"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e7c2c1642340712061e846748cdf561">&#9670;&nbsp;</a></span>PackageTemporaryData</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::<a class="el" href="class_s_p_h_1_1_base_data_package.html#a1e7c2c1642340712061e846748cdf561">PackageTemporaryData</a> =  PackageDataMatrix&lt;DataType, ADDRS_SIZE&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>define matrix data for temporary usage </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="abdcfb09e2db66d6664c442f2f64690cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdcfb09e2db66d6664c442f2f64690cf">&#9670;&nbsp;</a></span>assignPackageDataAddress()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::assignPackageDataAddress </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;&#160;</td>
          <td class="paramname"><em>addrs_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;&#160;</td>
          <td class="paramname"><em>data_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>assign address for a package data when the package is an inner one </p>

</div>
</div>
<a id="aa569be3d8384b956a47c0deb1c44eab2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa569be3d8384b956a47c0deb1c44eab2">&#9670;&nbsp;</a></span>computeGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename InDataType , typename OutDataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::computeGradient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; InDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>in_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; OutDataType &gt;&#160;</td>
          <td class="paramname"><em>out_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function compute gradient transform within data package </p>

</div>
</div>
<a id="a165808192799c34995ed2d5f94c8a104"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a165808192799c34995ed2d5f94c8a104">&#9670;&nbsp;</a></span>computeNormalizedGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename InDataType , typename OutDataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::computeNormalizedGradient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; InDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>in_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; OutDataType &gt;&#160;</td>
          <td class="paramname"><em>out_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function compute normalized gradient transform within data package <br  />
 </p>

</div>
</div>
<a id="a06c9aa37cb86d132547d2fc5cd1d894e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06c9aa37cb86d132547d2fc5cd1d894e">&#9670;&nbsp;</a></span>CornerAverage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::CornerAverage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a>&#160;</td>
          <td class="paramname"><em>addrs_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a>&#160;</td>
          <td class="paramname"><em>corner_direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>obtain averaged value at a corner of a data cell </p>

</div>
</div>
<a id="abda9f32c82964cb4ea44434603d56fd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abda9f32c82964cb4ea44434603d56fd8">&#9670;&nbsp;</a></span>initializePackageDataAddress()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::initializePackageDataAddress </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a533e964fd9ae146194533f7457cfc77b">PackageData</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>initialize package data address within a derived class constructor </p>

</div>
</div>
<a id="a90485a8cedc9c192ea2cba1e7f09abea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90485a8cedc9c192ea2cba1e7f09abea">&#9670;&nbsp;</a></span>initializePackageGeometry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::initializePackageGeometry </td>
          <td>(</td>
          <td class="paramtype">Vecd &amp;&#160;</td>
          <td class="paramname"><em>pkg_lower_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>data_spacing</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>initialize package mesh geometric information. </p>

</div>
</div>
<a id="a8a459a1bc47563fddf826fa9534e2616"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a459a1bc47563fddf826fa9534e2616">&#9670;&nbsp;</a></span>probeDataPackage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;class DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::probeDataPackage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a78749e0cfc7e90525a72781510ebc3d5">PackageDataAddress</a>&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vecd &amp;&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function probes by applying Bi and tri-linear interpolation within the package. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="af0bb3736a1690361c143004d97df5982"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0bb3736a1690361c143004d97df5982">&#9670;&nbsp;</a></span>data_lower_bound_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">Vecd <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::data_lower_bound_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>lower bound coordinate for the data as reference </p>

</div>
</div>
<a id="a1ce05b6dda6fbc903e2ede9e71d8862b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ce05b6dda6fbc903e2ede9e71d8862b">&#9670;&nbsp;</a></span>is_inner_pkg_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::is_inner_pkg_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>If true, its data saved in memory pool. </p>

</div>
</div>
<a id="a4ecdb2f7cef628600fdeb5c847f16ec0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ecdb2f7cef628600fdeb5c847f16ec0">&#9670;&nbsp;</a></span>pkg_index_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::pkg_index_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>index of the inner packages in the mesh, 0 for far-field packages. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/meshes/<a class="el" href="mesh__with__data__packages_8h_source.html">mesh_with_data_packages.h</a></li>
<li>SPHINXsys/src/for_2D_build/meshes/<a class="el" href="for__2_d__build_2meshes_2mesh__with__data__packages_8hpp_source.html">mesh_with_data_packages.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
